package com.cskt.securityproject.entity;

import java.awt.image.BufferedImage;
import java.io.Serial;
import java.io.Serializable;

/**
 * @description 图片验证码实体类
 * @date 2023/12/18 08:41
 * @auth mo
 */

public class ImageCode implements Serializable {

    @Serial
    private static final long serialVersionUID = 7377553302772072762L;

    private BufferedImage image;
    private String code;

    public ImageCode(BufferedImage image, String code) {
        this.image = image;
        this.code = code;
    }

    public BufferedImage getImage() {
        return image;
    }

    public void setImage(BufferedImage image) {
        this.image = image;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
